package com.boyon.customer.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

@Entity
@Table(name = "base_customer", catalog = "boyon_customer")
@Data
public class Customer implements java.io.Serializable {

	/**
	 * serialVersionUID:.
	 * 
	 * @since JDK 1.8
	 */
	private static final long serialVersionUID = -5967523303264576681L;
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "customer_id", unique = true, nullable = false)
	private Long customerId;
	@Column(name = "customer_no", length = 18)
	private String customerNo;
	@Column(name = "customer_type")
	private Integer customerType;
	@Column(name = "customer_name", length = 64)
	private String customerName;
	@Column(name = "customer_short", length = 64)
	private String customerShort;
	@Column(name = "customer_category")
	private Integer customerCategory;
	@Column(name = "link_man", length = 32)
	private String linkMan;
	@Column(name = "phone", length = 18)
	private String phone;
	@Column(name = "info", length = 128)
	private String info;
	@Column(name = "remark", length = 64)
	private String remark;
	@Column(name = "address", length = 128)
	private String address;
	@Column(name = "region_code", length = 6)
	private String regionCode;
	@Column(name = "www", length = 64)
	private String www;
	@Column(name = "fax", length = 18)
	private String fax;
	@Column(name = "postcode", length = 8)
	private String postcode;
	@Column(name = "status")
	private Integer status;
}